package ooday02.homework.PersonCase;

public class Student extends Person {
    String className;
    String stuId;

    Student() {
    }

    Student(String name, int age, String address, String className, String stuId) {
        super(name, age, address);
        this.className = className;
        this.stuId = stuId;
    }

    void study() {
        System.out.println(name + "正在努力学习...");
    }

    @Override
    void sayHi() {
        System.out.println(name + "今年" + age + "岁，住在" + address + "，在班级" + className + "上课，学号是" + stuId);
    }
}
